package com.mr.dao.entity.customer;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import com.mr.constants.Tables;
import com.mr.dao.entity.BaseEntity;
import com.mr.dao.entity.product.Subproduct;

@Entity(name = Tables.ORDERED_SUBPRODUCT)
public class OrderedSubproduct extends BaseEntity {
	private static final long serialVersionUID = 2170447272046544884L;
	private int quantity;
	@ManyToOne
	private Subproduct subproduct;
	@ManyToOne
	private Order customer_order;

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public Subproduct getSubproduct() {
		return subproduct;
	}

	public void setSubproduct(Subproduct subproduct) {
		this.subproduct = subproduct;
	}

	public Order getCustomer_order() {
		return customer_order;
	}

	public void setCustomer_order(Order customer_order) {
		this.customer_order = customer_order;
	}
}
